Share card image attachments

One of the many possibilities with Space Apps!

This use case serves to illustrate the endless possibilities to use a combination of Space Apps to help businesses. This blog focus on sharing image from within Trello to an external party.

Highlights

  • Call Space Butler using Trello http request to create a checklist of image attachments
  • Use Trello automation native to iterate to the above checklist
  • At each step use the Blue Hole integration to upload the images into a White Hole.
  • Call Taco Mail using Trello http request to send a customised email to the client for each attachment.
  • The email is send via mySMTP app.

post to url

"https://space_butler-1.........6.deta.app/attachments/list_attachments"

with payload

"{"card_id": "{triggercardidlong}", "option": "images"}",

Further details on the the integration

  • This service was specific designed create checklist items that has the attachment id and the attachment name
  • The payload identifies the card and opted for images.
  • The separator allow the attachment id to be used downstream to return the image content.
  • While this case study is a continuous integration, it can be broken down to allow for use intervention to remove content from the list.

for each checklist item in a checklist named

"Attachments : images",

Further details on the the integration

  • This action iterates through the checklist items and specifically the checklist item name is used downstream the actual image content

post to url

"https://black_hole-3kf-1-k......1.deta.app/api/integration/z..........z"

with headers

"{"Content-Type" : "application/json"}"

and payload

"{"url" : "https://space_butler-1-f.......6.deta.app/attachments/get_attachment?attach_id={checklistitemname}&card_id={triggercardidlong}"}",

and

Further details on the the integration

  • There are two services involved in the step, namely :
    • Integration services from Black Hole app to upload image to a designated White Hole
    • Space Butler service to find the matching attachment on the card
    • This is achieved by passing the Space Butler services url to Black Hole White Hole integration via a payload containing the url
  • This step, when successfully executed, will return a response which includes the an url to the public accessible image file.

post to url

"https://taco_mail-1-k.......3.deta.app/sendmail"

with payload

"{"card_id" : "{triggercardidlong}", "email": "clientemail@gmail.com" ,"email_template": "send_image_attachments", "overwrite": {}, "include" : "{httpresponse.url}" }"

Further details on the the integration

  • Taco Mail is called using a http request, identifying the card, the recipients email, the email template to use and the image url created from the previous step
  • The White Hole image url is retrieved from the {httpresponse.url} variable.
  • Taco Mail is configured to use mySMTP using its simple template and a SMTP configuration the sender’s email.

Conclusion

Space Bulter provides a set of curate services to extend the power of Trello automation using its http request function. By using other services of apps like Black Hole, Taco Mail and mySMTP, it opens other integration opportunities to help address business needs.